package com.example.weblending.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.weblending.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.weblending.vo.PasswordVo;
import com.example.weblending.vo.UnsetPassword;

/**
 *
 */
public interface UserService extends IService<User> {

    String login(User member);

    boolean isUserNameExist(String name);

    boolean register(User user, boolean admin);

    Page<User> getListyId(long page, long limit, User user);
    //管理员重置密码
    boolean updatePassword(PasswordVo passwordVo,int id);

    boolean setStaus(String uid, String id, int parseInt);

    User findOneByName(String name);

    String resetLogin(UnsetPassword apply);

    boolean verifyMail(String id, String salt);

    boolean verifyToMail(User user);

}
